<html>
	<body>
		<?php
			print "Player 1 Cards";
			print "<br>";
			$index = 0;
			print_r($first);
			 foreach($first as $cards):
		?>
			 <?php 
			 	   $path = $this->config->item('base_url'); 
			 	   $meth = $path;
			 	   $img = "/images/".$cards['suit']['suit_id']."_".$cards['face']['face'].".png";
				   $path = $path.$img; 
				   //$meth = $path."/index.php/durak/p1_attack/".$index;
				   $meth = site_url('hello/p1_attack/'.$index);
			 ?> 
			 <td> <a href="<?php echo $meth?>"> <img src="<?php echo $path?>"> </a> </td>
		<?php
		 	$index++;
		 	endforeach; 
		 ?>
		<td> <input type='submit' value='End Attack'> </td>
	</tr>
	</body>
</html>